import request from '@/utils/request'

// 查询分类与项目对照表列表
export function listCategoryitems(query) {
  return request({
    url: '/service/categoryitems/list',
    method: 'get',
    params: query
  })
}

// 查询分类与项目对照表详细
export function getCategoryitems(categoryitemsId) {
  return request({
    url: '/service/categoryitems/' + categoryitemsId,
    method: 'get'
  })
}

// 新增分类与项目对照表
export function addCategoryitems(data) {
  return request({
    url: '/service/categoryitems',
    method: 'post',
    data: data
  })
}

// 修改分类与项目对照表
export function updateCategoryitems(data) {
  return request({
    url: '/service/categoryitems',
    method: 'put',
    data: data
  })
}

// 删除分类与项目对照表
export function delCategoryitems(categoryitemsId) {
  return request({
    url: '/service/categoryitems/' + categoryitemsId,
    method: 'delete'
  })
}
